﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Skyworth.CRM.Service.Entity;
using Skyworth.CRM.Common;
using Skyworth.CRM.Service.IDAL;
using Skyworth.CRM.Service.IBLL;

namespace Skyworth.CRM.BLL
{
    public class ProductAttachmentBLL : IProductAttachmentBLL
    {
        private IProductAttachmentDAL _dal;
        public void Add(ProductAttachment model)
        {
            _dal.Add(model);
        }
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int AttachId)
        {
            return _dal.Delete(AttachId);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public ProductAttachment GetModel(int AttachId)
        {
            return _dal.GetModel(AttachId);
        }
    }
}